#pragma once
#include "canitf.h"
namespace rtbus {
class CCan : public CANItf
{
public:
    CCan();
    ~CCan();
    virtual int load_cfg(Config& cfg) override;
    virtual int active() override;
    virtual int deactive() override;
    virtual int send(FrameData* frame, size_t cnt) override;
    virtual int recv(FrameData* frame, size_t cnt) override;
    inline CANType type() { return CANType::CONTROLCAN; }

private:
    Config cfg_;

private:
};
}  // namespace rtbus
